<?php

defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />

<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->


</head>

<body id="page_bg">
<div id="bd">
	<div id="wrap">
    	<div id="header">
		         <jdoc:include type="modules" name="hearderbanner" style="xhtml" />
        </div>                      
        <div id="menu">
        	<jdoc:include type="modules" name="menu" style="xhtml" />
        </div>
			<div id="tinnong">
			<div id="date">
				<jdoc:include type="modules" name="date" style="xhtml" />
			</div>
			<div id="dtm_titlehot">
				<jdoc:include type="modules" name="dtm_titlehot" style="xhtml" />		
			</div>
			<div id="dtm_search">
				<jdoc:include type="modules" name="dtm_search" style="xhtml" />
			</div>
		</div>
      </div>  

            
            <div id="main">                
                <?php if ( $this->countModules('slice') ) { ?>
                <div id="janews">
                    <jdoc:include type="modules" name="ja-news" style="xhtml" />
                </div>
                <?php } ?>
                
                <?php	if (JRequest::getvar('layout')=='blog') { ?>
                <div id="compo1">
                	<div id="compo1_top">
	                    <jdoc:include type="component" />
                    </div>
                </div>
                <?php } ?>
                
                <?php	if (JRequest::getvar('layout')!='blog' && !$this->countModules('slice') ) { ?>
                <div id="compo2">
                	<div id="compo2_top">
                    	<div id="compo2_bot">
	                    	<jdoc:include type="component" />
                        </div>
                    </div>
                </div>
                <?php } ?>

            </div>

	
			            <div id="footer">
                    <div id="menu_footer">
                        <jdoc:include type="modules" name="mn_foot" style="xhtml" /> 
                    </div>
                    
                    <div id="logo_footer">
                        <jdoc:include type="modules" name="logo_footer" style="xhtml" /> 
                    </div>
 
              
                    
            </div>
        </div>
        </div>
        
    </div>
</div>

<jdoc:include type="modules" name="debug" />

</body>
</html>